package com.distribution.business.web.vo.map;

import com.distribution.business.dto.OrderDto;
import com.distribution.business.web.vo.OrderQueryParam;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

@Mapper
public interface OrderMapper {

    @Mappings({
            @Mapping(source = "pwd",target = "password"),
            @Mapping(source = "add",target = "address")
    })
    OrderQueryParam entity2queryParam(OrderDto order);

}
